package com.atguigu.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author 86183
 */
@SpringBootApplication
// 该注解用于向使用consul为注册中心时注册服务
@EnableDiscoveryClient
// 启动feign客户端，定义服务+绑定接口，以声明式的方法优雅而简单的实现服务调用
@EnableFeignClients
public class MainOpenFeign80 {
    public static void main(String[] args) {
        SpringApplication.run(MainOpenFeign80.class,args);
    }
}